home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 011 / utildsk.arc / DISKNUMB.DOC < prev    next >
Encoding:
Text File  |  1985-03-09  |  2.1 KB  |  43 lines

  1.  
  2.                                     DISKNUMB
  3.  
  4.  
  5.     DISKNUMB is a number of disk drives management program designed to
  6.     allow the number of disk drives to be varied to suit system
  7.     requirements.  The switches of the PC may be set to reflect the actual
  8.     number of drives actually installed.  This will allow IBM Diagnostics
  9.     or Advanced Diagnostics to be used with proper switch settings.
  10.  
  11.     If there is a need to change this number, DISKNUMB will reset the bios
  12.     data value at 0040:0010 to reflect the desired number and reboot
  13.     PC-DOS.  There are a few good reasons to do this:
  14.          1) Some RAM disks require that the switches be changed to reflect
  15.             the total number of drives, actual plus ram.
  16.          2) A program could use a nonexistent drive (B, C or D).
  17.     In the first case, DISKNUMB will reset the number of drives to that
  18.     desired.  In the second case, DISKNUMB and ASSIGN will allow that drive
  19.     to be used.
  20.  
  21.     DISKNUMB should be called from the AUTOEXEC.BAT file.  It should also
  22.     be located at or close to the beginning of the file, as it will reboot
  23.     DOS if it must change the system's knowledge of the number of drives.
  24.     The calling sequence is:
  25.  
  26.          DISKNUMB x[n]
  27.  
  28.     x is the number of drives that will be set into the bios data area at
  29.     0040:0010.  This value is range checked to be between 1 and 4.  If the
  30.     value is outside of the range, an error message is printed.
  31.  
  32.     n is input as 'n' or 'N' and, if input, will prevent the program from
  33.     rebooting DOS if the number of drives has been changed.  This would be
  34.     used if something else will cause the reboot.  The reboot is necessary
  35.     to inform DOS about the new value.
  36.  
  37.  
  38.                                                  Laurie Scantlin
  39.                                                  x-50123  ^
  40.      Uploaded by: Mike Shunfenthal                        |
  41.                     2602 West 235 Street                  |
  42.                     Torrance, CA 90505       This guy's a wizard!
  43.